package com.imufe.springbootshiro.mapper;

import com.imufe.springbootshiro.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @Auther: sunYong
 * @Date: 2019/2/9 20:49
 * @Description: ${package_name}
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where name=#{name}")
    public User findByName(String name);

    @Select("select * from user where id=#{id}")
    public User findById(Integer id);
}
